package com.star.common.oss.properties;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * oss相关系统配置
 *
 * @author zhouhengzhe #公众号：小白的Java进阶之路
 * @version 1.0
 * @date 2023/6/27 11:52
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ConfigurationProperties(prefix = "star.oss")
public class OssProperties {

    private AliyunOssProperties aliyun;

    private HuaweiCloudOssProperties huaweicloud;

    private AwsOssProperties aws;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class AliyunOssProperties {

        private String accessKeyId;

        private String accessKeySecret;

        private String endpoint;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class HuaweiCloudOssProperties {
        private String ak;

        private String sk;

        private String endPoint;
    }
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class AwsOssProperties {
        public String endPoint;

        public String accessKey;

        public String secretKey;
    }
}
